Class Utils

java.lang.Object
particleengine.Utils

public abstract class Utils extends Object
  • Constructor Details

    • Utils

      public Utils()
  • Method Details

    • getPlayerContainingLocation

      public static com.fs.starfarer.campaign.BaseLocation getPlayerContainingLocation()
    • getLoadedSprite

      public static com.fs.starfarer.api.graphics.SpriteAPI getLoadedSprite(String loc)
      Retrieves a sprite from the given file path, loading it into a texture if it doesn't already have a texture assigned.
      Note: Sprites loaded in this manner are not loaded permanently; they are unloaded periodically in the campaign layer and at the start of each combat.
      Parameters:
      loc - File path relative to the starsector-core directory
      Returns:
      SpriteAPI object corresponding to the given file